


import org.hibernate.cfg.AnnotationConfiguration;
import org.hibernate.tool.hbm2ddl.SchemaExport;
import teste.*;


/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Rapha
 */
public class GeraTabelasNoBanco
{
    public static void main(String[]args)
    {
        AnnotationConfiguration cfg = new AnnotationConfiguration();
        cfg.addAnnotatedClass(Pessoa.class);
        cfg.addAnnotatedClass(Endereco.class);
        SchemaExport se = new SchemaExport(cfg);
        se.create(true, true);
    }



}
